local f = CreateFrame("Frame");
local ldb = LibStub:GetLibrary("LibDataBroker-1.1");

local dataobj = ldb:NewDataObject("zBrokerTracking", {
  type = "launcher",
  icon = "Interface\\Minimap\\Tracking\\None",
  iconCoords = { 0, 1, 0, 1 },
  OnClick = function(self, button)
    if button == "LeftButton" then
      ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, self, 0, self:GetHeight());
    end
  end
});

f:RegisterEvent("MINIMAP_UPDATE_TRACKING");
f:RegisterEvent("PLAYER_LOGIN");

f:SetScript("OnEvent", function(self, event)
  if event == "PLAYER_LOGIN" then
    MiniMapTracking:Hide();
    MiniMapTracking.Show = function() end;
  end
  
  dataobj.iconCoords = { 0, 1, 0, 1 };
  dataobj.icon = "Interface\\Minimap\\Tracking\\None";
end);